from django.urls import path, include
from rest_framework.routers import SimpleRouter
from .views import MobileView, LoginView, SendSmsView, RegisterView,TestView

router = SimpleRouter()
# 127.0.0.1:8000/api/v1/user/mobile/check_mobile/  get
router.register('mobile', MobileView, 'mobile')
# 127.0.0.1:8000/api/v1/user/login/mul_login/  post
# 127.0.0.1:8000/api/v1/user/login/sms_login/  post
router.register('login', LoginView, 'login')
# 127.0.0.1:8000/api/v1/user/send/send_message/  get
router.register('send', SendSmsView, 'send')
# 127.0.0.1:8000/api/v1/user/register/  post
router.register('register', RegisterView, 'register')
urlpatterns = [
    path('', include(router.urls)),
    path('test/', TestView.as_view()),
]
